on

@CheckForNull
abstract fun on(params: P): R

Invoked when the callback needs a response of type R that may be determined based on the provided callback parameters.

Return

an object of type R that represents the callback response that should be determined based on the provided parameters

Parameters

params

the object that represents the callback parameters